export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 4,
  "menuWidth": 300,
  "column": [
	  {
      "type": "input",
      "label": "主键ID",
      "search": true,
      "addDisplay": false,
      "searchSpan": 3,
      "editDisabled": true,
      "prop": "id"
    },
	  {
      "type": "select",
      "label": "模板分组",
      "searchSpan": 4,
      editDisabled: true,
      "prop": "templateGroupId",
      filterable: true,
      "search":true,
      "dicUrl": '/templateGroup/all',
      click: (obj) => {
        console.log('loading data....')
      },
      props: {
        label: 'name',
        value: 'id'
      },
      rules: [
        {
          required: true,
          message: '请选择模板分组',
          trigger: 'blur'
        }
      ]
    },
	  {
      "type": "input",
      "label": "模板名称",
      "search": true,
      "searchSpan": 4,
      "prop": "name",
      rules: [
        {
          required: true,
          message: '请输入模板名称',
          trigger: 'blur'
        }
      ]
    },
    {
      "type": "select",
      "label": "模板类型",
      "searchSpan": 4,
      "prop": "templateType",
      filterable: true,
      "search": true,
      dicData:[
        {
          label:'后台',
          value:0
        },{
          label:'前端',
          value:1
        },{
          label:'Mapping.xml文件',
          value:2
        },{
          label:'其他类型',
          value:3
        }
      ],
      placeholder: '0-后台应用，1-前端，2--Mapping.xml文件,3--其他类型',
      rules: [
        {
          required: true,
          trigger: 'blur'
        }
      ]
    },
    {
      "type": "input",
      "label": "模块路径",
      "prop": "modularPath",
      placeholder: '模块名称路径，如controllerservermapper等'
    },
    {
      "type": "input",
      "label": "文件前缀",
      "prop": "filePrefix"
    },
    {
      "type": "input",
      "label": " 文件后缀",
      "prop": "fileSuffix",
      rules: [
        {
          required: true,
          trigger: 'blur'
        }
      ]
    },
	  {
      "type": "textarea",
      "label": "模板内容",
      "searchSpan": 4,
      "search": true,
      "hide": true,
      "prop": "content",
      "editDisabled": true,
      overHidden: true,
      rules: [
        {
          required: true,
          message: '请输入模板名称',
          trigger: 'blur'
        }
      ]
    },
	  {
      "type": "input",
      "label": "当前版本",
      "addDisplay": false,
      "editDisabled": true,
      "prop": "currentVersion"
    },
	  {
      "type": "input",
      "label": "备注",
      "prop": "remark"
    },
	  {
      "type": "input",
      "label": "创建人ID",
      "hide": true,
      "addDisplay": false,
      "editDisabled": true,
      "prop": "createId"
    },
    {
      "type": "input",
      "label": "创建人",
      "addDisplay": false,
      "editDisabled": true,
      "prop": "createName"
    },
	  {
      "type": "input",
      "label": "创建时间",
      "addDisplay": false,
      "editDisabled": true,
      "prop": "createTime"
    },
	  {
      "type": "input",
      "label": "修改人",
      'hide': true,
      "addDisplay": false,
      "editDisabled": true,
      "prop": "updateId"
    },
    {
      "type": "input",
      "label": "修改人",
      "addDisplay": false,
      "editDisabled": true,
      "prop": "updateName"
    },
	  {
      "type": "input",
      "label": "修改时间",
      "addDisplay": false,
      "editDisabled": true,
      "prop": "updateTime"
    }
  ]
}
